$ sudo apt install lxc
$ sudo lxc-create -n test-container -t ubuntu
$ sudo lxc-create -t download -n name
$ sudo lxc-create -t download -n u1 -- --dist ubuntu --release xenial --arch amd64
$ sudo lxc-ls --fancy
$ sudo lxc-start --name <container_name> --daemon
or
$ sudo lxc-start -n <container_name> -d
$ sudo lxc-stop --name <container_name>
or
$ sudo lxc-stop -n <container_name>
$ sudo lxc-attach -n <container_name>
$ sudo lxc-info --name <container_name>
$ sudo lxc-destroy --name <container_name>
$ sudo apt install openssh-server
$ sudo adduser <username>
$ sudo adduser <username> sudo
$ sudo vim /var/lib/lxc/lxctest/config
and insert
lxc.start.auto = 1
$ sudo vim /etc/bash_completion
and insert
. /usr/share/bash-completion/bash_completion
$ sudo vim /usr/share/bash-completion/bash_completion
Copy paste this from another Ubuntu machine
This article is not complete, some completions don't work.
$ sudo lxc-ls --fancy -F NAME,STATE,PID,RAM,SWAP,AUTOSTART,GROUPS,INTERFACE,IPV4,IPV6
$ sudo lxc-console -n <container_name>
Click link